<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>CON-101: Order Reservation[Create/Edit]</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">

		<link rel="stylesheet" type="text/css" href="./css/custom.css">
		<link rel="stylesheet" type="text/css" href="./css/template01.css">
	</head>
  
<body>
	<div id="wrapper">
		<f:view>
			<f:loadBundle var="bundle"
					basename="com.tpc.control.message.ResourceBundle" />
			<div id="header">
				<p><h:outputText value="#{bundle.project_name}"/></p>		 	   
			</div>
	        <div id="navigation">
				<h:outputText value="CON-000: Login" styleClass="header2"/>		 
			</div>
			<div id="content">
			<h:form id="con000Form">
				<h:panelGrid columns="2" styleClass="normal">
					<h:outputText value="#{bundle.username}" styleClass="headerSubject"/>
					<h:inputText value="#{con000.userName}"></h:inputText>
					<h:outputText value="#{bundle.password}" styleClass="headerSubject"/>
					<h:inputSecret value="#{con000.password}"></h:inputSecret>
				</h:panelGrid>
				<h:commandButton action="#{con000.loginUser}" value="Login"></h:commandButton>
				<h:messages errorClass="errorMessages" infoClass="infoMessages"></h:messages>
			</h:form>
	 		</div>  
		</f:view>
	</div>
</body>
</html>